using System;
using System.Collections.Generic;
using System.Text;

namespace ClientTools.Library.Templates
{
    public class Template
    {
        public Template() { }
        public Template(umbraco.cms.businesslogic.template.Template umbracoTemplate) 
        { 
            this._alias = umbracoTemplate.Alias;
            this._name = umbracoTemplate.Text;
            this._design = umbracoTemplate.Design;
            if (umbracoTemplate.HasMasterTemplate)
	        {
		        umbraco.cms.businesslogic.template.Template masterTemplate = new umbraco.cms.businesslogic.template.Template(umbracoTemplate.MasterTemplate);
                this._MasterTemplate = masterTemplate.Text;
	        } 
            else
	        {
                this._MasterTemplate = null;
	        }
        }

        private string _alias;

        public string Alias
        {
            get { return _alias; }
            set { _alias = value; }
        }

        private string _name;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _design;

        public string Design
        {
            get { return _design; }
            set { _design = value; }
        }

        private string _MasterTemplate;

        public string MasterTemplate
        {
            get { return _MasterTemplate; }
            set { _MasterTemplate = value; }
        }
	
	
    }
}
